<!--<?php
include_once PrintEot('header');
print <<<EOT
-->
<form action="$admin_file" method="post" name="form">

    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td align="left" class="tittab">
                <strong>回收站 &gt;&gt; 广告计划信息</strong>
            </td>
        </tr>
    </table>
    <table id="Table50" border="0" cellpadding="0" cellspacing="1" width="96%" align=center>
         <tr>
            <td colspan=2 height=30 class="zmenu"><b>数据分类：</b>
<!--
EOT;
 showPageLink("all", "1", "全部数据");
 showPageLink("audit", "0", "等待审核"); 
 showPageLink("audit", "1", "审核通过"); 
 showPageLink("audit", "2", "审核未通过");
print <<<EOT
--> </td></tr> 
            <tr>
            <td><b>快速查询：</b><select id="searchtype">
								<option value="name" selected>计划名称</option>
								<option value="shortname">客户简称</option>
								<option value="contractname">合同名称</option>							
							</select>
							<input type="text" name="searchkey" value="$searchkey" class="text"/>
							<input type="button" name="btnQuery" value="查询" class="text"/>
						</td>
            <td align="right" valign="center">
                <table id="Table51" border="0" cellpadding="0" cellspacing="5" height="30">
                    <input name="allSelect" type="hidden" value="all" />
                    <tr>
                        <td align="middle" valign="center">
                            <a href="javascript:document.location.reload();">
                                <img align="absMiddle" border="0" height="15" src="$imgpath/admin/reserch.gif" style="text-decoration: underline" width="17" />
                                <span style="color: #547054"> 刷新</span></a>
<!--
EOT;
						if($candel==true){
							showButton(2,'彻底清除','javascript:ConfirmDel("'.$admin_file.'&action=destory'.$transtr.'&Page='.$curpage.'","此操作不可恢复,确认删除吗？");');
						}print <<<EOT
-->
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="2" colspan=2>
            </td>
        </tr>
    </table>
    <div class="tab">
        <table id="Table52" border="0" cellpadding="3" cellspacing="0" align=center>
            <tr>
                <td align="middle" class="title" height="20" valign="center">序号</td>
                <td align="middle" class="title" height="20" valign="center">
                    <input id="Checkbox1" name="as" onclick="allchecked()" type="checkbox" />全选
                </td>
                <td align="middle" class="title" height="20" valign="center">计划名称</td>
                <td align="middle" class="title" height="20" valign="center">对应客户</td>
                <td align="middle" class="title" height="20" valign="center">支付标准</td>
                <td align="middle" class="title" height="20" valign="center">每日限额</td>                 
                <td align="middle" class="title" height="20" valign="center">提交申请数</td>               
                <td align="middle" class="title" height="20" valign="center">添加日期</td>
                <td align="middle" class="title" height="20" valign="center">审批</td>    
                <td align="middle" class="title" height="20" valign="center">操作</td>
            </tr>
<!--
EOT;
$curidx = ($curpage-1)*$perpage;
$curpageidx = 0;
$showcount = count($db_advlist); 
foreach($db_advlist as $adv ){
	$merchant = getMerchant($adv[mer_id]);
	$curidx = $curidx+1;
	$curpageidx = $curpageidx+1;
	$cdate = date('Y/m/d H:i:s',$adv[create_time]);
	$feetype = $cfg_advfeetype[$adv[fee_type]];
	$advaudit = $cfg_userstatus[$adv[audit]];
print <<<EOT
--> 
            <tr height="20"  onclick="SwitchTd(this,'click',$curpageidx);" onmouseout="SwitchTd(this,'out',$curpageidx);" onmouseover="SwitchTd(this,'over',$curpageidx);" style="cursor: hand">
                <td align="middle" valign="center" height="20">$curidx </td>
                <td align="middle" valign="center"><input id="ids" name="ids" type="checkbox" value="$adv[id]" />
                </td>
                <td align="middle" valign="center">&nbsp;<a href="$basename?job=detail&action=advertise&curid=$adv[id]$transtr&backurl=$backurl" class=NoLine>$adv[name]</a></td>
                <td align="middle" valign="center">&nbsp;<a href="$basename?job=detail&action=merchant&curid=$adv[mer_id]$transtr&backurl=$backurl" class=NoLine>$adv[mer_name]</a></td>
                <td align="middle" valign="center">&nbsp;$feetype</td>
                <td align="middle" valign="center">&nbsp;$adv[day_maxmoney]</td>
                <td align="middle" valign="center">&nbsp;$adv[aff_count]</td>
                <td align="middle" valign="center">&nbsp;$cdate</td>
                <td align="middle" valign="center">&nbsp;$advaudit</td> 
                <td align="middle" valign="center">&nbsp;
<!--
EOT;
	showEditButton($adv[id]);
print <<<EOT
-->
                </td>
            </tr>
<!--
EOT;
}print <<<EOT
-->
        </table>
    </div>
    <table id="Table1" border="0" cellpadding="0" cellspacing="0" width="98%">
        <tr>
            <td>
                &nbsp;</td>
            <td align="right" height="35">
<!--
EOT;
	showPageBreakInfo($showcount);
print <<<EOT
-->
             &nbsp;</td>
        </tr>
    </table>
    <input type="hidden" id="count" name="count" value="$showcount" />

</form>

<!--
EOT;
?>-->